<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script src="vue.min.js"></script>
    <script src="axios.min.js"></script>

    <div id="app">

        <table border="1">
            <tr v-for="data in dataList">
                <td>{{data.name}}</td>
                <td>{{data.age}}</td>
            </tr>
        </table>
       
    </div>
    <script src="vue.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                dataList:[]
            },
            created(){
                this.getList()
        
            },
            methods:{
                getList(){
                    axios.get("data.json").then((res)=>{
                        // console.log(res)
                        this.dataList=res.data.data.items
                        console.log(this.dataList)
                    }).catch((err)=>{

                    })
                }
            }
        })
    </script>
</body>

</html>